package day0616;
//1  3   5   7   8   10   12     31
//4   6  9   11                  30
//2
public class Test1 {
    //让程序能运行的主函数
    public static void main(String[] args) {
        int m=6;
        int y=2023;
        if(m==1 ||  m==3||m==5 ||  m==7||m==8 ||  m==10||m==12){
            System.out.println("31天");
        }else if(m==4 || m==6 || m==9 || m==11){
            System.out.println("30天");
        }else if(m==2 && ( (y%400 == 0)   |    ( y%4==0   &  !(y % 100  ==0)  ))   ){
            System.out.println("29天");
        }else if(m==2 &&   !( (y%400 == 0)   |    ( y%4==0   &  !(y % 100  ==0)  ))   ){
            System.out.println("28天");
        }else{
            System.out.println("月份值无效");
        }
    }

}
